[POWERPC][XEN] Handle foreign page mappings correctly
authorJimi Xenidis <jimix@watson.ibm.com>
Tue, 12 Sep 2006 15:01:04 +0000 (11:01 -0400)
committerJimi Xenidis <jimix@watson.ibm.com>
Tue, 12 Sep 2006 15:01:04 +0000 (11:01 -0400)
commit09cb887950207ca87c62128d8ba743d949e62dae
tree1cf5814c86069aa394e9c85d59dc5a619942eb02
parent582f42dffcad0469db9d5d0ca1e956f7f8239e3c
[POWERPC][XEN] Handle foreign page mappings correctly

The following patch performs the following:
  - add free_rma() to go with allocate_rma()
  - allocate_rma() returns -EINVAL if an RMA is already allocated
  - PFN_TYPE_REMOTE is now PFN_TYPE_FOREIGN
  - better checking of page_info in pfn2mfn()
  - Stop using RPN and LPN and use PFN and MFN respectively
  - Increase/decrease foreign domain refcount when another domain
    maps/unmaps it

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
xen/arch/powerpc/domain.c
xen/arch/powerpc/mm.c
xen/arch/powerpc/papr/xlate.c
xen/arch/powerpc/usercopy.c
xen/include/asm-powerpc/mm.h